package com.java2_22.Demo2;

public class PersonDemo {
    public static void main(String[] args) {
        Teacher t1 = new Teacher();
        t1.setName("赵宇");
        t1.setAge(20);
        System.out.println(t1.getName() + ", " + t1.getAge());
        t1.teach();

        Teacher t2 = new Teacher("小花", 20);
        System.out.println(t2.getName() + ", " + t2.getAge());
        t2.teach();
    }
}
